package com.sky.controller.admin;

import com.sky.result.Result;
import com.sky.service.ReminderOrderService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @program: sky-take-out
 * @description:
 * @author: fmp
 * @create: 2023-04-09 15:10
 * @Version 1.0
 **/
@RestController
@Slf4j
@Api(tags = "催单模块")
@RequestMapping("/user/order")
public class ReminderOrderController {
    @Resource
    private ReminderOrderService reminderOrderService;
    @GetMapping("/reminder/{orderId}")
    @ApiOperation("催单功能")
    public Result reminderOrder(@PathVariable Long orderId){
        reminderOrderService.reminderOrder(orderId);
     return Result.success();
    }

}
